package com.ruoyi.project.rest.member.mapper;

import java.util.List;
import com.ruoyi.project.rest.member.domain.RestMember;

/**
 * 会员Mapper接口
 * 
 * @author ruoyi
 * @date 2022-03-28
 */
public interface RestMemberMapper 
{
    /**
     * 查询会员
     * 
     * @param id 会员主键
     * @return 会员
     */
    public RestMember selectRestMemberById(Long id);

    /**
     * 查询会员列表
     * 
     * @param restMember 会员
     * @return 会员集合
     */
    public List<RestMember> selectRestMemberList(RestMember restMember);

    public RestMember checkMember(RestMember restMember);

    /**
     * 新增会员
     * 
     * @param restMember 会员
     * @return 结果
     */
    public int insertRestMember(RestMember restMember);

    /**
     * 修改会员
     * 
     * @param restMember 会员
     * @return 结果
     */
    public int updateRestMember(RestMember restMember);

    /**
     * 删除会员
     * 
     * @param id 会员主键
     * @return 结果
     */
    public int deleteRestMemberById(Long id);

    /**
     * 批量删除会员
     * 
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteRestMemberByIds(String[] ids);

    RestMember selectRestMemberByPhone(String phone);
}
